package cn.zyq.stater.config;

import cn.zyq.stater.bean.User1;
import cn.zyq.stater.bean.User2;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = {"cn.zyq.stater.bean"})//@ComponentScan("cn.zyq.stater.bean")
//@ComponentScan配合@Component或@Service等注解创建并扫描对象到容器
// (目前因为只有User1添加了@Component所以这个扫描只针对User1生效)(User2和User3采用的是@Bean方式创建)
public class Config2_ComponentScan {

}
